<?php
class Container extends Lead_EDO_Object_Abstract 
{
    static $_tables = array('containers');
    
    static $_relations = array(
    
   		array(
		'name' => 'suites',
		'type' => 'HasMany',
		'class_name' => 'Suite',
		'foreign_key' => 'container_id',
		'render_as' => 'dropdown',
		'display' => '%name',
		'order' => 'name ASC',
		),
		
   		array(
		'name' => 'tests',
		'type' => 'HasOne',
		'class_name' => 'Test',
		'foreign_key' => 'container_id',
		'render_as' => 'dropdown',
		'display' => '%name',
		'order' => 'name ASC',
		),


    );
    
}


